<?php
class DBcnn_mysql
{
	private static $db=null;
	public static function getPDOcnn()
	{ 
		if(DBcnn_mysql::$db == null)
		{
			$dsn="mysql:host=localhost;dbname=jiening";
			DBcnn_mysql::$db = new PDO($dsn, 'root', 'lovivid');
		}
		return DBcnn_mysql::$db;
	}       
}
